namespace DotNetNuke.Services.Scheduling
{
    using System;
    using System.Collections;

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The ScheduleStatusSortRemainingTimeDescending Class is a custom IComparer Implementation
    /// used to sort the Schedule Items
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// [cnurse]	9/28/2004	Updated to reflect design changes for Help, 508 support
    /// and localisation
    /// </history>
    /// -----------------------------------------------------------------------------
    public class ScheduleStatusSortRemainingTimeDescending : IComparer
    {
        public int Compare(object x, object y)
        {
            return ((ScheduleHistoryItem) x).RemainingTime.CompareTo(((ScheduleHistoryItem) y).RemainingTime);
        }
    }
}

